<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>文章发表</title>
	<meta content="text/html; charset=utf-8" http-equiv="content-type" />
	<script type="text/javascript" src="ckeditor/ckeditor.js"></script>
	<script src="sample.js" type="text/javascript"></script>
	<link href="editorcss.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
        function init()
        {
            //document.getElementById('ckeditor');
            
        	//var myeditor=CKEDITOR.replace('editor1', { toolbar: 'Basic' });
        	alert(myeditor.getData());
        }
    </script>
</head>
<body>	
     <div  id="content">
		<form action="postdata.php" method="post">
		    <div>
		            	标题:<input type="text" name="title"/>
		    </div>
		    <div id="editor">
				<?php 
				     $title   = $_GET['title'];
				     $text1 = $_GET['content'];
				?>
					<textarea class="ckeditor" cols="80" id="editor1" name="editor1" rows="10" style="background-color:#CAD6DE">
					 </textarea>
					<script type="text/javascript">
						var myeditor = CKEDITOR.replace("editor1");
					</script>				 
					<input type="submit" value="发表" />
			</div>
		</form>
	</div>
</body>
</html>
